package com.product.system.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class ArgpCropGrowthRecords {
    private Integer id ;
    private String  cropId;
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date plantingDate;
    private String   growthStage;
    private BigDecimal temperature;
    private BigDecimal    humidity;
    private BigDecimal soilPh;
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date recordedAt;
    private String    provincename;
    private String    cityname;
    private String    districtname;
    private Integer provinceId;
    private Integer cityId;
    private Integer districtId;
    private String    baseName;
    private BigDecimal area;

}
